home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / program / swagd_f.zip / EGAVGA.SWG / 0002_BGIEXE2.PAS.pas < prev    next >
Pascal/Delphi Source File  |  1993-05-28  |  773b  |  34 lines

  1. {
  2. >How do I compile a Graphic Program With the Graph included.
  3.  
  4. I think what you'd like to be included in your EXE File are the BGI drivers ;
  5. here is a sample code to include the EGAVGA.BGI driver in your EXE :
  6. }
  7.  
  8. Unit EgaVga;
  9.  
  10. Interface
  11.  
  12. Uses
  13.   Graph;
  14.  
  15. Implementation
  16.  
  17. {$L EgaVga}
  18. Procedure DriverEgaVga; External;
  19.  
  20. begin
  21.   If RegisterBGIDriver(@DriverEgaVga)<0 Then
  22.     Halt(1);
  23. end.
  24.  
  25. {
  26. What you need to do is just include the Unit in your 'Uses' statement.
  27. Well, prior to do this, you'll need to enter the following command at
  28. the Dos prompt :
  29.  
  30. BinObj EGAVGA.BGI EGAVGA.Obj DriverEgaVga
  31.  
  32. You cand do the same For the other .BGI Files, and even For the .CHR (font)
  33. Files -just replacing RegisterBGIDriver With RegisterBGIFont, I think.
  34. }